<?php
/**
 * 卡密
 * @link https://www.leadshop.vip/
 * @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
 */
namespace card\models;

use framework\common\CommonModels;

class Card extends CommonModels
{
    public function scenarios()
    {
        $scenarios = parent::scenarios();
        $scenarios['delete'] = ['is_deleted', 'deleted_time'];
        return $scenarios;
    }

    //用户
    public function getUser()
    {
        return $this->hasOne('users\models\User', ['id' => 'UID']);
    }
}